package com.hongye.app.model;

import com.jfinal.plugin.activerecord.Model;

public class PhoneCodeModel extends Model<PhoneCodeModel>{
	
	private static final long serialVersionUID = 7265159195580758357L;
	
	public static final PhoneCodeModel dao = new PhoneCodeModel();
	
	
	public static PhoneCodeModel get(String phone, String type) {
		String sql = "select * from phone_code where phone = '"+phone+"' and type = '"+ type +"' ORDER BY c_time DESC LIMIT 0,1";
		PhoneCodeModel phonecode = dao.findFirst(sql);
		return phonecode;
	}

}
